FROM java:8
VOLUME /tmp
ADD vending-machine-0.0.1-SNAPSHOT.jar /vending-machine.jar

#时区设置
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["java","-Djava.security.egd-file:/dev/./urandom","-jar","/vending-machine.jar"]

